<#include "/common/head2.html"/> 
<div class="easyui-panel addPage" data-options="fit:true,border:false,novalidate:true">
	<form class="easyui-form" id="ff" method="post" data-options="novalidate:true">
		<table>
			<tr>
				<td>
					<span class="adertisement">规则类型: </span>
				    <input onkeypress="keyPress()" required="required" type="text" id="type" name="type" value="" />
					<!-- <input onkeypress="keyPress()" onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9-]/g,'')" onpaste="value=value.replace(/[^\a-\z\A-\Z0-9-]/g,'')" 
					oncontextmenu = "value=value.replace(/[^\a-\z\A-\Z0-9-]/g,'')" required="required" type="text" id="activityid" name="activityid" value=""/> -->
				</td>
			</tr>
			
			<tr>
            	<td>
            	<div data-options="region:'south',border:false" style="text-align: right; padding: 12px; border-top-width: 0px; border-top-style: solid; border-top-color: rgb(221, 221, 221); width: 674px; height: 28px;" title="" class="panel-body panel-body-noheader panel-body-noborder layout-body">
            		<a class="easyui-linkbutton color1 l-btn l-btn-small" href="javascript:void(0)" onclick="javascript:save();" style="width: 220px;">
            			<span class="l-btn-center" style="margin-top: 0px;"><span class="l-btn-text">确定</span></span>
            		</a>
        		</div>
            	</td>
            </tr>				
		</table>
	</form>
</div>
<script type="text/javascript">
function save() {
	$("#ff").form('submit', { 
        url: "addaPage", 
        onSubmit: function () {   
        	//表单提交前的回调函数 
        	if(!$("#ff").form('enableValidation').form('validate')) {
            	$.messager.alert('操作结果','请检查标红输入项','error');
        		return false;
        	}       	
        	
        }, 
        success: function (v) {
        	location.replace('adda');
    	} 
      }); 
}
//js扩展功能

		function keyPress() {    
				         var keyCode = event.keyCode;    
				         if ((keyCode >= 48 && keyCode <= 57) ||(keyCode >=65 && keyCode <= 90) || (keyCode >=97 && keyCode<=122) || (keyCode == 95)){    
				             event.returnValue = true;    
				         } else {    
				               event.returnValue = false;    
				        }    
				     } 

</script>
<#include "/common/dialogWindow.html"/>
<#include "/common/foot.html"/>